package j.framework.domain;

import j.util.jdbc.simple.annotation.Column;
import j.util.jdbc.simple.annotation.DataType;

import java.io.Serializable;
import java.util.Date;

/**
 * User: jason
 * Date: 2014/11/10 9:26
 */
public abstract class BaseDomain implements Serializable {

    @Column(name="addUserID",updatable = false)
    private String addedUserId;

    @Column(name="addDateTime",updatable = false,datatype = DataType.DATETIME)
    private Date addedTime;
    /**
     * 获取主键的值
     * @return
     */
    public abstract String getId();

    /**
     * 设置主键
     * @param id
     * @return
     */
    public abstract void setId(String id);

    public String getAddedUserId() {
        return addedUserId;
    }
    public void setAddedUserId(String addedUserId) {
        this.addedUserId = addedUserId;
    }

    public Date getAddedTime() {
        return addedTime;
    }
    public void setAddedTime(Date addedTime) {
        this.addedTime = addedTime;
    }
}
